/** @namespace app.model.DailyPlatformCategory */
module.exports = app => {
  const {STRING, INTEGER, DATE} = app.Sequelize;

  return app.model.define('daily_platform_category', {
    id: {
      type: INTEGER.UNSIGNED,
      primaryKey: true,
      autoIncrement: true,
    },
    platform_id: {
      type: INTEGER.UNSIGNED, unique: 'platform_category',
    },
    daily_category_id: {
      type: INTEGER.UNSIGNED, unique: 'platform_category',
    },
  }, {timestamps: false});
};